package com.bwie.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author liuxin
 * @since 2025-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_trip_order")
@ApiModel(value="TUserTripOrder对象", description="")
public class UserTripOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户行程订单id")
    @TableId(value = "user_trip_order_id", type = IdType.AUTO)
    private Long userTripOrderId;

    @ApiModelProperty(value = "行程单号")
    @TableField("trip_odd_no")
    private String tripOddNo;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "出发地中文")
    @TableField("departure")
    private String departure;

    @ApiModelProperty(value = "出发地经纬度")
    @TableField("departure_latitude_and_longitude")
    private String departureLatitudeAndLongitude;

    @ApiModelProperty(value = "状态(1待接单，2行程中，3取消订单，4已完成，5.待评价)")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "支付状态（1:未支付 2：已支付）")
    @TableField("pay_state")
    private Integer payState;

    @ApiModelProperty(value = "目的地中文")
    @TableField("destination")
    private String destination;

    @ApiModelProperty(value = "目的地经纬度")
    @TableField("destination_latitude_and_longitude")
    private String destinationLatitudeAndLongitude;

    @ApiModelProperty(value = "公里数")
    @TableField("kilometers")
    private BigDecimal kilometers;

    @ApiModelProperty(value = "车类型(1、打车2、预约车3、包车4、顺风车)")
    @TableField("car_type")
    private Integer carType;

    @ApiModelProperty(value = "接单司机id")
    @TableField("driver_id")
    private Integer driverId;

    @ApiModelProperty(value = "送达时间")
    @TableField("deliver_time")
    private LocalDateTime deliverTime;

    @ApiModelProperty(value = "应付金额")
    @TableField("payable_amount")
    private BigDecimal payableAmount;

    @ApiModelProperty(value = "总金额")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "优惠券id")
    @TableField("coupon_template_id")
    private Integer couponTemplateId;

    @ApiModelProperty(value = "优惠券金额")
    @TableField("coupon_amount")
    private BigDecimal couponAmount;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("is_delete")
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
